/*
 * @Author: zhouwei wei.zhou@flip.fun
 * @Date: 2024-04-26 15:28:16
 * @LastEditors: zhouwei wei.zhou@flip.fun
 * @LastEditTime: 2024-04-27 15:36:52
 * @FilePath: /redux/src/main.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import { Provider } from './redux/react-redux.js'
import store from './store/index.js'
import './index.css'
console.log(store)
// store.subscribe(() => {
// 	console.log('object')
// })
ReactDOM.createRoot(document.getElementById('root')).render(
	<Provider value={store}>
		<App />
	</Provider>
)
setTimeout(() => {
	console.log(store.dispatch({ type: 'add', payload: 22 }))
	console.log(store.getState())
})
